package com.chinasoft04.mall.dto;

import com.chinasoft04.mall.pojo.AuthPermissionPlus;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class AuthL {
    Integer id;
    String authName;
    String level;
    Integer pid;
    String path;

    public AuthL(AuthPermissionPlus permPlus) {
        id = permPlus.getPs_id();
        authName = permPlus.getPs_name();
        level = permPlus.getPs_level().toString();
        pid = permPlus.getPs_pid();
        path = permPlus.getPs_api_path();
    }
}
